<template>
    <div>
    <!-----------  访问表  ------------>
            <el-table :data="visitRecordList" style="width:100%">
             <el-table-column prop="visitRecordId"
                           label="编号id"
                           width="140">
             </el-table-column>
             <el-table-column prop="userId"
                           label="用户id"
                           width="140">
            </el-table-column>
            <el-table-column prop="visitRecordTouristName"
                           label="游客姓名"
                           width="140">
            </el-table-column>
            <el-table-column prop="visitRecordTouristPhone"
                           label="游客电话"
                           width="140">
            </el-table-column>
            <el-table-column prop="visitRecordTouristDesination"
                           label="出行目的地"
                           width="140">
            </el-table-column>
            <el-table-column prop="visitRecordTime"
                           label="访问时间"
                           width="140">
            </el-table-column>
            <el-table-column prop="serviceStaffId"
                           label="客服id"
                           width="140">
            </el-table-column>
            <el-table-column prop="visitRecordDesc"
                           label="备注信息"
                           width="140">
            </el-table-column>
            </el-table>
  </div>
</template>

<script>
export default {
  data() {
    return {
        visitRecordList:[],
    };
  },
  methods: {
    showVisit(){
      this.$axios.get("visit/")
      .then(res=>{
        this.visitRecordList = res.data.data.visitRecordList;
      })
    }, 
  },
  created(){
    // this.staffId = JSON.parse(sessionStorage.getItem("staffId"));
    this.showVisit();
  }
};
</script>